const User = require('../models/user.model.js')
class UserService {
  async createUser(user_name, password) {
    // todo: 写入数据库
    const res = await User.create({ user_name, password })
    return res.dataValues
  }
}

module.exports = new UserService()